package com.tracesystem.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author JMOCOK
 * @description 记录工时参数
 * @date 2022/3/26  15:40
 */
@ApiModel("记录工时参数")
@Data
public class RecordForm {
    @ApiModelProperty("缺陷id")
    private Integer issueId;
    @ApiModelProperty("工时")
    @NotNull
    private BigDecimal workHours;
    @ApiModelProperty("工作描述")
    @NotNull
    private String logDesc;
    @ApiModelProperty("任务状态")
    @NotNull
    private String logState;
    @ApiModelProperty("完成率")
    @Min(0)
    private Integer doneRatio;

}
